﻿<header>
    <div class="content-wrapper">
        <div class="float-left">
            <p class="site-title">
                <a href="~/">Rent a Car REST API</a></p>
        </div>
    </div>
</header>
<div id="body">
    <h3>REST API for renting cars</h3>
    <h4>Utilizare:</h4>
    <p>
        Functionalitatea disponibila utilizatorului grupata pe verbele din cadrul REST este urmatoarea:
    </p>
<p><b>GET:</b></p>
- Interogarea tuturor masinilor disponibile in cadrul firmei de inchirieri <br/>
  Exemplu link cerere: <a href="http://rentacarapi.azurewebsites.net/api/cars/">http://rentacarapi.azurewebsites.net/api/cars/</a> <br/>
- Obtinerea detaliilor cu privire la o masina anume dupa id <br/>
  Exemplu link cerere: <a href="http://rentacarapi.azurewebsites.net/api/cars/2">http://rentacarapi.azurewebsites.net/api/cars/2</a> <br/>
- Interogarea tututor masinilor disponibile intr-o perioada de timp data: <br/>
  Exemplu link cerere: <a href="http://rentacarapi.azurewebsites.net/api/cars/10-11-2013/10-13-2013">http://rentacarapi.azurewebsites.net/api/cars/10-11-2013/10-13-2013</a> <br/>
- Interogarea tuturor rezervarilor efectuate <br/>
  Exemplu link cerere: <a href="http://rentacarapi.azurewebsites.net/api/reservations">http://rentacarapi.azurewebsites.net/api/reservations</a> <br/>
- Interogarea unei anumite rezervari <br/>
  Exemplu link cerere: <a href="http://rentacarapi.azurewebsites.net/api/reservations/1">http://rentacarapi.azurewebsites.net/api/reservations/1</a> <br/>
 
 <p><b>POST:</b></p>
 - Realizarea unei noi rezervari cu ajutorul id-ului si a datei de inceput si sfarsit a rezervarii <br/>
   Exemplu link: <a href="http://rentacarapi.azurewebsites.net/api/reservations/2/10-11-2013/10-13-2013">http://rentacarapi.azurewebsites.net/api/reservations/2/10-11-2013/10-13-2013</a> <br/>
 <p><b>PUT:</b></p>
 - Realizarea unei modificari asupra unei resurse rezervare deja existente <br/>
   Exemplu link:  <a href="http://rentacarapi.azurewebsites.net/api/reservations/1">http://rentacarapi.azurewebsites.net/api/reservations/1</a> <br/>
   Headers: Content-Type : application/json <br/>
   Body: { <br/>
			"ID":1, <br/>
			"IdCarReserved":3, <br/>
			"StartDate":"2013-10-10T00:00:00", <br/>
			"EndDate":"2013-11-05T00:00:00", <br/>
			"Links":[{"Rel":"/linkrels/reservation/cancel","Uri":"/api/reservations/1"}, <br/>
				 {"Rel":"/linkrels/reservation/change", "Uri":"/api/reservations/1"}, <br/>
				 {"Rel":"/linkrels/car/details","Uri":"/api/cars/1"}] <br/>
		} <br/>
<p><b>DELETE:</b></p>
- Stergerea unei rezervari realizate <br/>
  Link: <a href="http://rentacarapi.azurewebsites.net/api/reservations/1">http://rentacarapi.azurewebsites.net/api/reservations/1</a> <br/>
</div>
